import 'dart:convert';
import 'package:flutter_app/generated/json/base/json_field.dart';
import 'package:flutter_app/generated/json/list_app_article_basic_entity.g.dart';

@JsonSerializable()
class ListAppArticleBasicEntity {

	List<ListAppArticleBasicContent>? content;
	int? pageNum;
	int? pageSize;
	int? totalPages;
	int? totalSize;
  
  ListAppArticleBasicEntity();

  factory ListAppArticleBasicEntity.fromJson(Map<String, dynamic> json) => $ListAppArticleBasicEntityFromJson(json);

  Map<String, dynamic> toJson() => $ListAppArticleBasicEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class ListAppArticleBasicContent {

	String? articleType;
	String? contentType;
	String? id;
	String? title;
  
  ListAppArticleBasicContent();

  factory ListAppArticleBasicContent.fromJson(Map<String, dynamic> json) => $ListAppArticleBasicContentFromJson(json);

  Map<String, dynamic> toJson() => $ListAppArticleBasicContentToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}